{{if isset($recommended['content']['recommendedArticles']) && count($recommended['content']['recommendedArticles']) > 0}}
    <section class="mb-8">
        <h2 class="text-xl font-bold mb-6 flex items-center">
            <i class="fa fa-star text-yellow-400 mr-2"></i> 为你推荐
        </h2>
        <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
            {{foreach $recommended['content']['items'] as $item}}
                <a href="{{$item['url']}}" class="group bg-white rounded-lg shadow-sm p-4 card-hover">
                    <h3 class="font-medium text-gray-900 group-hover:text-primary transition-colors line-clamp-2">
                        {{$item['title']}}
                    </h3>
                    <p class="text-sm text-gray-500 mt-2">
                        <i class="fa fa-user-o mr-1"></i> {{$item['author']['name']}}
                    </p>
                </a>
            {{/foreach}}
        </div>
    </section>
{{/if}}